<div class="content">
	<div class="ibox">
        <div class="ibox-title">
            <h5>团队列表</h5>
            <div ibox-tools>
                <div class="ibox-tools dropdown">
                    <button type="button" class="btn btn-sm btn-primary pull-right m-t-n-xs" ui-sref="dashboard.race.team">新增</button>
                </div>
            </div>
        </div>
        <div class="ibox-content">
            <table class="table table-striped table-bordered table-hover" ng-if="vm.teamlist.length>0">
                <thead>
                    <tr>
                        <th class="text-center">序号</th>
                        <th class="text-center">团队名称</th>
                        <th class="text-center">团队性别</th>
                        <th class="text-center">成员数</th>
                        <th class="text-center">所属科目</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="team in vm.teamlist" ng-click="vm.teamedit($event, team.team_id)">
                        <td class="text-center">{{$index+1}}</td>
                        <td class="text-center">{{team.team_name}}</td>
                        <td class="text-center">
                            <span ng-if="team.team_gender == 'mixed'">混合</span>
                            <span ng-if="team.team_gender == 'female'">女子</span>
                            <span ng-if="team.team_gender == 'male'">男子</span>
                        </td>
                        <td class="text-center">{{team.team_count}}</td>
                        <td class="text-center">{{team.course_name}}</td>
                    </tr>
                </tbody>
            </table>
            <p class="text-center" ng-if="vm.teamlist.length==0">
                暂无团队。
            </p>
        </div>
    </div>
</div>